package com.tintintech.sendmail.util;

import com.tintintech.sendmail.Config;
import com.tintintech.sendmail.helper.DataHelper;
import com.tintintech.sendmail.helper.FileHelper;

public class Reset
{
    public static void mailBox()
    {
    	DataHelper.MAIL_QUEUE.clear();
    	DataHelper.MAILBOX_MAP.clear();
    	DataHelper.SEND_FAILED_MAP.clear();
    	
    	FileHelper.remove(Config.GLOBALS.get("dbPath"));
    	FileHelper.remove(Config.GLOBALS.get("logPath"));
    	
    	MailStat.RECV_SUCCESS_NUM.getAndSet(0);
    	MailStat.SEND_FAILED_NUM_1.getAndSet(0);
    	MailStat.SEND_FAILED_NUM_2.getAndSet(0);
//    	MailStat.SEND_SUCCESS_NUM.getAndSet(0);
    }
}